package com.zxc.model;


import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * 问题表(Question)实体类
 *
 * @author makejava
 * @since 2019-05-01 11:39:03
 */
public class Question extends BaseEntity {

    private Integer id;
    //问题类型：1表示单选，2表示多选，3表示天空，4表示判断，5表示问答
    private String type;
    //题干
    private String title;
    //A选项答案
    private String optionA;
    //B选项答案
    private String optionB;
    //C选项答案
    private String optionC;
    //D选项答案
    private String optionD;
    //答案
    private String answer;
    //解析
    private String analyse;
    //分值
    private Double score;
    //该题的最终得分
    private Double finalScore;
    //科目编号
    private String subid;
    //科目编号
    private String subname;

    //单选或者多选的选中（修改试题的正确答案回显）
    private String optionAChecked;
    private String optionBChecked;
    private String optionCChecked;
    private String optionDChecked;
    //判断题的选中
    private String judgeAnswer1;//正确
    private String judgeAnswer0;//错误

    //学生的答案（查看 详情和考试过程中的）
    private String textAnswerStu;
    private String optionACheckedStu;
    private String optionBCheckedStu;
    private String optionCCheckedStu;
    private String optionDCheckedStu;
    private String judgeAnswer1Stu;//正确
    private String judgeAnswer0Stu;//错误

    private String beginTime;//创建时间
    private String endTime;//结束时间
    private Integer createBy;
    private Integer updateBy;
    private Date createDate;
    private Date updateDate;

    private Integer isChoose;



    public String formateTime(Date date) {
        SimpleDateFormat df=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        return df.format(date);
    }

    public Integer getIsChoose() {
        return isChoose;
    }

    public void setIsChoose(Integer isChoose) {
        this.isChoose = isChoose;
    }

    public Integer getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(Integer updateBy) {
        this.updateBy = updateBy;
    }


    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }



    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }



    public Integer getCreateBy() {
        return createBy;
    }

    public void setCreateBy(Integer createBy) {
        this.createBy = createBy;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getOptionA() {
        return optionA;
    }

    public void setOptionA(String optionA) {
        this.optionA = optionA;
    }

    public String getOptionB() {
        return optionB;
    }

    public void setOptionB(String optionB) {
        this.optionB = optionB;
    }

    public String getOptionC() {
        return optionC;
    }

    public void setOptionC(String optionC) {
        this.optionC = optionC;
    }

    public String getOptionD() {
        return optionD;
    }

    public void setOptionD(String optionD) {
        this.optionD = optionD;
    }

    public String getAnswer() {
        return answer;
    }

    public void setAnswer(String answer) {
        this.answer = answer;
    }

    public String getAnalyse() {
        return analyse;
    }

    public void setAnalyse(String analyse) {
        this.analyse = analyse;
    }

    public Double getScore() {
        return score;
    }

    public void setScore(Double score) {
        this.score = score;
    }

    public Double getFinalScore() {
        return finalScore;
    }

    public void setFinalScore(Double finalScore) {
        this.finalScore = finalScore;
    }

    public String getSubid() {
        return subid;
    }

    public void setSubid(String subid) {
        this.subid = subid;
    }

    public String getSubname() {
        return subname;
    }

    public void setSubname(String subname) {
        this.subname = subname;
    }

    public String getOptionAChecked() {
        return optionAChecked;
    }

    public void setOptionAChecked(String optionAChecked) {
        this.optionAChecked = optionAChecked;
    }

    public String getOptionBChecked() {
        return optionBChecked;
    }

    public void setOptionBChecked(String optionBChecked) {
        this.optionBChecked = optionBChecked;
    }

    public String getOptionCChecked() {
        return optionCChecked;
    }

    public void setOptionCChecked(String optionCChecked) {
        this.optionCChecked = optionCChecked;
    }

    public String getOptionDChecked() {
        return optionDChecked;
    }

    public void setOptionDChecked(String optionDChecked) {
        this.optionDChecked = optionDChecked;
    }

    public String getJudgeAnswer1() {
        return judgeAnswer1;
    }

    public void setJudgeAnswer1(String judgeAnswer1) {
        this.judgeAnswer1 = judgeAnswer1;
    }

    public String getJudgeAnswer0() {
        return judgeAnswer0;
    }

    public void setJudgeAnswer0(String judgeAnswer0) {
        this.judgeAnswer0 = judgeAnswer0;
    }

    public String getTextAnswerStu() {
        return textAnswerStu;
    }

    public void setTextAnswerStu(String textAnswerStu) {
        this.textAnswerStu = textAnswerStu;
    }

    public String getOptionACheckedStu() {
        return optionACheckedStu;
    }

    public void setOptionACheckedStu(String optionACheckedStu) {
        this.optionACheckedStu = optionACheckedStu;
    }

    public String getOptionBCheckedStu() {
        return optionBCheckedStu;
    }

    public void setOptionBCheckedStu(String optionBCheckedStu) {
        this.optionBCheckedStu = optionBCheckedStu;
    }

    public String getOptionCCheckedStu() {
        return optionCCheckedStu;
    }

    public void setOptionCCheckedStu(String optionCCheckedStu) {
        this.optionCCheckedStu = optionCCheckedStu;
    }

    public String getOptionDCheckedStu() {
        return optionDCheckedStu;
    }

    public void setOptionDCheckedStu(String optionDCheckedStu) {
        this.optionDCheckedStu = optionDCheckedStu;
    }

    public String getJudgeAnswer1Stu() {
        return judgeAnswer1Stu;
    }

    public void setJudgeAnswer1Stu(String judgeAnswer1Stu) {
        this.judgeAnswer1Stu = judgeAnswer1Stu;
    }

    public String getJudgeAnswer0Stu() {
        return judgeAnswer0Stu;
    }

    public void setJudgeAnswer0Stu(String judgeAnswer0Stu) {
        this.judgeAnswer0Stu = judgeAnswer0Stu;
    }

    public String getBeginTime() {
        return beginTime;
    }

    public void setBeginTime(String beginTime) {
        this.beginTime = beginTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    @Override
    public String toString() {
        return "Question{" +
                "id=" + id +
                ", type='" + type + '\'' +
                ", title='" + title + '\'' +
                ", optionA='" + optionA + '\'' +
                ", optionB='" + optionB + '\'' +
                ", optionC='" + optionC + '\'' +
                ", optionD='" + optionD + '\'' +
                ", answer='" + answer + '\'' +
                ", analyse='" + analyse + '\'' +
                ", score=" + score +
                ", finalScore=" + finalScore +
                ", subid='" + subid + '\'' +
                ", subname='" + subname + '\'' +
                ", optionAChecked='" + optionAChecked + '\'' +
                ", optionBChecked='" + optionBChecked + '\'' +
                ", optionCChecked='" + optionCChecked + '\'' +
                ", optionDChecked='" + optionDChecked + '\'' +
                ", judgeAnswer1='" + judgeAnswer1 + '\'' +
                ", judgeAnswer0='" + judgeAnswer0 + '\'' +
                ", textAnswerStu='" + textAnswerStu + '\'' +
                ", optionACheckedStu='" + optionACheckedStu + '\'' +
                ", optionBCheckedStu='" + optionBCheckedStu + '\'' +
                ", optionCCheckedStu='" + optionCCheckedStu + '\'' +
                ", optionDCheckedStu='" + optionDCheckedStu + '\'' +
                ", judgeAnswer1Stu='" + judgeAnswer1Stu + '\'' +
                ", judgeAnswer0Stu='" + judgeAnswer0Stu + '\'' +
                ", beginTime='" + beginTime + '\'' +
                ", endTime='" + endTime + '\'' +
                '}';
    }
}